import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;


public class App {
	
	public static void main(String[] args) {
		Frame f=new Frame();
		f.setBounds(100,100,900,600);
		f.setVisible(true);
		f.addWindowListener(new WindowAdapter() {

			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
			
		});
		
		
		f.add(new MyCanvas(),BorderLayout.CENTER);
		
		f.validate();
	}

}
